<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>原型继承</title>
</head>
<body>
  <script>
      // function Woman(){
      //     this.eyes=2
      //     this.head=1
      // }
      // function Man(){
      //     this.eyes=2
      //     this.head=1
      // }
    const Person={
        eyes:2,
        head:1
    }
    function Woman(){
    }
    Woman.prototype=Person
    Woman.prototype.constructor=Woman
    const red=new Woman()
    console.log(red.__proto__);
      console.log(Woman.prototype);
      // const red=new Woman()
      // const blue=new Man()
  </script>
</body>
</html>